Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CopyTo Method
See Also 
Leadtools.Dicom.AddIn Namespace > Generic ThreadSafeList Class : CopyTo Method



array
The one-dimensional Array that is the destination of the elements copied from Generic ICollection. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
array
The one-dimensional Array that is the destination of the elements copied from Generic ICollection. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Copies the elements of the Generic ICollection to an Array, starting at a particular Array index.

Syntax

Visual Basic (Declaration) 
Public Sub CopyTo( _
   ByVal array() As T, _
   ByVal arrayIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ThreadSafeList(Of T)
Dim array() As T
Dim arrayIndex As Integer
 
instance.CopyTo(array, arrayIndex)
C# 
public void CopyTo( 
   T[] array,
   int arrayIndex
)
C++/CLI 
public:
void CopyTo( 
   array<T>^ array,
   int arrayIndex
) 

Parameters

array
The one-dimensional Array that is the destination of the elements copied from Generic ICollection. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.

Exceptions

ExceptionDescription
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionarray is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source Generic ICollection is greater than the available space from arrayIndex to the end of the destination array. -or- Type T cannot be cast automatically to the type of the destination array.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features